import { constantRoutes } from '@/router'
export default {
  namespaced: true, // 开启命名空间
  state: {
    // 将动态路由储存在vuex
    menusList: []
  },
  mutations: {
    upMenus(state, menus) {
      // 将将静态路由和动态路由合并
      state.menusList = [...constantRoutes, ...menus]
    }
  }
}
